<template>
  <div class="wh">
    <commonshownum :type="'tianshu'" :num="numval" :typestr.sync="numstr" :componentDetail="componentDetail"/>
  </div>
</template>
<script>
import dayjs from "dayjs";
import commonmixins from "@/mixins/bigScreen/commonmixins";

export default {
  mixins: [commonmixins],
  name: "tianshunumtaian",
  components: {},
  data() {
    return {
      numval: "-",
      numstr: "供热运行天数",
    };
  },
  computed: {},
  watch: {
    "$store.state.daping.bigScreen": {
      handler: function (n, o) {},
    },
  },
  mounted() {
    let days = dayjs().diff(dayjs("2020-11-15"), "day");
    if (days < 0) {
      this.numval = -days;
      this.numstr = "供热倒计时";
    }
  },
  methods: {},
};
</script>
<style lang='scss' scoped>
</style>